package com.fastloan.mgt.product.postloan.model;

import com.kawins.base.baseabs.BaseModel;

import javax.persistence.*;

/**
 * @author admins
 *         createTime 2017/11/10
 */
@Table(name = "ZY_PRODUCT_POST_LOAN")
public class ProductPostLoan extends BaseModel<String>{


    /**
     * 贷后监控频率时间规则-- 0每天 1每周 2半月 3一个月 4三个月 5六个月
     */
    public static final int IN_DAY = 0;
    public static final int IN_WEEK = 1;
    public static final int IN_HANF_MONTH = 2;
    public static final int IN_ONE_MONTH = 3;
    public static final int IN_THREE_MONTH = 4;
    public static final int IN_SIX_MONTH = 5;


    /**
     * 贷后id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private String loanId;
    /**
     * 产品id
     */
    private String productId;
    /**
     * 放款后首次贷后监控时间
     */
    private Integer normalWatchTime;
    /**
     * 首次贷后监控后控制频率
     */
    private Integer normalFrequency;
    /**
     * 电话催收频率
     */
    private Integer overdueRemoteCall;
    /**
     * 首次贷后监控后控制频率
     */
    private Integer overdueFrequency;

    private Integer loanStatus;

    public Integer getLoanStatus() {
        return loanStatus;
    }

    public void setLoanStatus(Integer loanStatus) {
        this.loanStatus = loanStatus;
    }

    public String getLoanId() {
        return this.loanId;
    }

    public ProductPostLoan setLoanId(String loanId) {
        this.loanId = loanId;
        return this;
    }

    public String getProductId() {
        return this.productId;
    }

    public ProductPostLoan setProductId(String productId) {
        this.productId = productId;
        return this;
    }

    public Integer getNormalWatchTime() {
        return this.normalWatchTime;
    }

    public ProductPostLoan setNormalWatchTime(Integer normalWatchTime) {
        this.normalWatchTime = normalWatchTime;
        return this;
    }

    public Integer getNormalFrequency() {
        return this.normalFrequency;
    }

    public ProductPostLoan setNormalFrequency(Integer normalFrequency) {
        this.normalFrequency = normalFrequency;
        return this;
    }

    public Integer getOverdueRemoteCall() {
        return this.overdueRemoteCall;
    }

    public ProductPostLoan setOverdueRemoteCall(Integer overdueRemoteCall) {
        this.overdueRemoteCall = overdueRemoteCall;
        return this;
    }

    public Integer getOverdueFrequency() {
        return this.overdueFrequency;
    }

    public ProductPostLoan setOverdueFrequency(Integer overdueFrequency) {
        this.overdueFrequency = overdueFrequency;
        return this;
    }
}
